import { Entity, PrimaryColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';
import { PublicEntity } from './base/public.entity';

@Entity({ name: 'position' })
export class PositionEntity extends PublicEntity {
  @Column({ length: 36, comment: '职位id', unique: true })
  pid: string;

  @Column({ length: 32, comment: '职位名称' })
  name: string;

  @Column({ length: 32, comment: '职位地点' })
  base: string;

  @Column({ length: 32, comment: '职位待遇' })
  treatment: string;

  @Column({ type: 'text', nullable: true, comment: '职位要求' })
  requirement: string;

  @Column({ type: 'text', nullable: true, comment: '职位描述' })
  description: string;

  @Column({ type: 'tinyint', default: 0, comment: '职位类型: 0全职 1兼职' })
  type: number;

  @Column({ type: 'tinyint', default: 1, comment: '职位状态: 0已下架 1发布中' })
  status: number;

  @Column({ length: 36, comment: '公司id' })
  eid: string;
}
